package io.yunho.webflux.client.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpMethod;
import reactor.core.publisher.Mono;

import java.util.Map;

/**
 * @author: yunho
 * @date: 2021/5/14 16:15
 * @description:方法调用信息类
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MethodInfo {
    private String url;
    private HttpMethod httpMethod;
    private Map<String,Object> params;
    private Mono body;
    /**
     * 请求body的类型
     */
    private Class<?> bodyClass;
    /**
     * 是否flux，否则为mono
     */
    private Boolean isFlux;
    /**
     * 返回对象类型
     */
    private Class<?> returnElementType;
}
